package com.greensam.pixelengine.event.base;

/**
 * 事件监听器接口
 *
 * @author Ma Chengrui
 * @since 2025/10/13 17:40
 */
@FunctionalInterface
public interface TypeEventListener<T extends TypeEvent> {

    void onEvent(T event);

    default String getId() {
        return this.toString();
    }
}
